﻿/*-----------------------------------------------------------------------------!
! Supplier entity class                                                        !
!------------------------------------------------------------------------------!
! System   : Inventory Management System                                       !
! Client   : UK based                                                          !
! Date     : April 2011                                                        !
! Copyright: (C) KAWISOFT Inc                                                  !
! Program  : Supplier.cs                                                       !
! Function : All field of supplier table                                       !
!------------------------------------------------------------------------------!
! Notes:                                                                       !
! Original author: Md. Shaiful Islam                                           !
! Last changed by: Md. Shaiful Islam, May 02 2011                              !
===============================================================================*/


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model.Upadan
{
    public class Supplier
    {
        private string _Id;
        private string _AccountReference;
        private string _CompanyName;
        private string _ContactPerson;
        private string _Live;

        // supplier Id
        public string Id
        {
            get { return _Id; }
            set 
            { 
                _Id = value;
                _Id = (_Id.Length > 20) ? _Id.Substring(0, 20) : _Id;
            }
        }

        // supplier AccountReference
        public string AccountReference
        {
            get { return _AccountReference; }
            set 
            { 
                _AccountReference = value;
                _AccountReference = (_AccountReference.Length > 50) ? _AccountReference.Substring(0, 50) : _AccountReference;
            }
        }

        // supplier CompanyName
        public string CompanyName
        {
            get { return _CompanyName; }
            set 
            { 
                _CompanyName = value;
                _CompanyName = (_CompanyName.Length > 200) ? _CompanyName.Substring(0, 200) : _CompanyName;
            }

        }

        // supplier ContactPerson
        public string ContactPerson
        {
            get { return _ContactPerson; }
            set 
            { 
                _ContactPerson = value;
                _ContactPerson = (_ContactPerson.Length > 20) ? _ContactPerson.Substring(0, 20) : _ContactPerson;
            }
        }

        // supplier Live
        public string Live
        {
            get { return _Live; }
            set 
            { 
                _Live = value;
                _Live = (_Live.Length > 1) ? _Live.Substring(0, 1) : _Live;
            }
        }

    }
}
